package org.wk.user.enums;

/**
 * @ClassName VerifyResult
 * @Description vip审核结果
 * @Author ZhaoPing'an
 * @Date 2018/6/4 9:37
 */
public enum  VerifyResult {
    WAIT_VERIFY("wait_verify","待审核"),
    FIRST_VERIFY_PASS("first_verify_pass","初审通过"),
    FIRST_VERIFY_FAIL("first_verify_fail","初审不通过"),
    FINAL_VERIFY_PASS("final_verify_pass","终审通过"),
    FINAL_VERIFY_FAIL("final_verify_fail","终审不通过");
    private String code;
    private String name;
    private VerifyResult(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public static VerifyResult containsCode(String code) {
        for (VerifyResult item : VerifyResult.values()) {
            if (item.getCode().equals(code)) {
                return item;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setName(String name) {
        this.name = name;
    }

}
